/**
 * FileName: UserFeign
 * Author:   Administrator
 * Date:     2018/11/16 17:14
 * Description: 后台用户管理模块
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.fortune.rainshine.feign.system;

import com.fortune.rainshine.config.FeignConfig;
import com.fortune.rainshinecommon.base.MsgModel;
import com.fortune.rainshinecommon.model.SysUsers;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * 〈一句话功能简述〉<br> 
 * 〈后台用户管理模块〉
 *
 * @author Administrator
 * @create 2018/11/16
 * @since 1.0.0
 */
@FeignClient(value = "rain-shine-system",configuration = FeignConfig.class)
@Controller
//@CrossOrigin(origins = "*", maxAge = 3600)
public interface  UserFeign {

    @RequestMapping(value = "/user/add",method = RequestMethod.POST)
    @ResponseBody
    MsgModel<?> add(@RequestBody SysUsers user);

    @RequestMapping(value = "/user/list",method = RequestMethod.POST)
    @ResponseBody
    MsgModel<?> list(@RequestBody SysUsers user);

}